package com.zzhb.listener;

import java.util.Arrays;
import java.util.List;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class HuiQianListener implements TaskListener {

	private static final long serialVersionUID = -2820192862532885881L;

	@Override
	public void notify(DelegateTask delegateTask) {
		String eventName = delegateTask.getEventName();
		System.out.println("==name======" + delegateTask.getName() + "====eventName====" + eventName
				+ "===leaderList=====" + delegateTask.getVariable("leaderListStr").toString());
		String leaderListStr = delegateTask.getVariable("leaderListStr").toString();
		List<String> leaderList = Arrays.asList(leaderListStr.split(","));
		delegateTask.setVariable("leaderList", leaderList);
	}

}
